/**
 * Copyright &copy; 2012-2016 <a href="https://www.kaaction.com">KAA</a> All rights reserved All rights reserved.
 */
package com.kaaction.modules.market.service;

import java.util.List;

import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import com.kaaction.common.persistence.Page;
import com.kaaction.common.service.CrudService;
import com.kaaction.modules.market.entity.Works;
import com.kaaction.modules.market.dao.WorksDao;

/**
 * 作品Service
 * @author zengbiao
 * @version 2017-04-21
 */
@Service
@Transactional(readOnly = true)
public class WorksService extends CrudService<WorksDao, Works> {

	public Works get(String id) {
		return super.get(id);
	}
	
	public List<Works> findList(Works works) {
		return super.findList(works);
	}
	
	public Page<Works> findPage(Page<Works> page, Works works) {
		return super.findPage(page, works);
	}
	
	@Transactional(readOnly = false)
	public void save(Works works) {
		super.save(works);
	}
	
	@Transactional(readOnly = false)
	public void delete(Works works) {
		super.delete(works);
	}
	
}